#include <stdio.h>
void copy_arr(int m, int n, double target[m][n], double source[m][n]);      // AVL  变长数组
void show_arr(int m, int n, double arr[m][n]);
int main(void)
{
    double source [3][5] = {
        {  1,  2,  3,  4 , 5 },
        {  6,  7,  8,  9, 10 },
        { 11, 12, 13, 14, 15 },
    };
    double target [3][5];

    show_arr(3, 5, target);
    copy_arr(3, 5, target, source);
    show_arr(3, 5, target);
    return 0;
}

void copy_arr(int m, int n, double target[m][n], double source[m][n])
{
    int i, j;

    for (i = 0; i < m; i++)
        for (j = 0; j < n; j++)
            target[i][j] = source[i][j];

    return;
}

void show_arr(int m, int n, double arr[m][n])
{
    int i, j;

    for (i = 0; i < m; i++)
        for (j = 0; j < n; j++)
        {   
            if (j % n == 0)
                putchar('\n');
            printf("%.1lf ", arr[i][j]);
        }
        putchar('\n');

    return;
}